<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "bus_member_beautycard".
 *
 * @property string $card_id
 * @property string $card_name
 * @property integer $total_times
 * @property integer $remain_times
 * @property string $create_time
 * @property string $member_id
 * @property string $expire_time
 * @property string $shop_id
 * @property string $boss_id
 */
class BusMemberBeautycard extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'bus_member_beautycard';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['card_name', 'total_times', 'member_id', 'shop_id', 'boss_id'], 'required'],
            [['total_times', 'remain_times', 'member_id', 'shop_id', 'boss_id', 'is_give'], 'integer'],
            [['create_time', 'expire_time', 'total_price'], 'safe'],
            [['card_name'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'card_id' => 'Card ID',
            'card_name' => 'Card Name',
            'total_times' => 'Total Times',
            'remain_times' => 'Remain Times',
            'create_time' => 'Create Time',
            'member_id' => 'Member ID',
            'expire_time' => 'Expire Time',
            'is_give' => '是否赠送 1：是，0：否',
            'shop_id' => 'Shop ID',
            'boss_id' => 'Boss ID',
            'total_price' => 'total_price',
        ];
    }
}
